// ==========================================================================
// GFast自动生成service操作代码。
// 生成日期：2023-12-01 16:05:36
// 生成路径: internal/app/plugins/sms/service/plugin_sms_log.go
// 生成人：gfast
// desc:短信日志
// company:云南奇讯科技有限公司
// ==========================================================================

package service

import (
	"context"

	"github.com/tiger1103/gfast/v3/internal/app/plugins/sms/model"
)

type IPluginSmsLog interface {
	List(ctx context.Context, req *model.PluginSmsLogSearchReq) (res *model.PluginSmsLogSearchRes, err error)
	GetById(ctx context.Context, Id uint) (res *model.PluginSmsLogInfoRes, err error)
	Add(ctx context.Context, req *model.PluginSmsLogAddReq) (err error)
	Edit(ctx context.Context, req *model.PluginSmsLogEditReq) (err error)
	Delete(ctx context.Context, Id []uint) (err error)
}

var localPluginSmsLog IPluginSmsLog

func PluginSmsLog() IPluginSmsLog {
	if localPluginSmsLog == nil {
		panic("implement not found for interface IPluginSmsLog, forgot register?")
	}
	return localPluginSmsLog
}

func RegisterPluginSmsLog(i IPluginSmsLog) {
	localPluginSmsLog = i
}
